package com.cj.framework.util;

import java.util.HashMap;

/**
 * Created by Administrator on 2016/7/20.
 */
public interface IOkHttp {
    public interface IHttpCallback{
        public void onResponse(Msg msg, int index);
        public void onError(Exception e);
    }
    public interface  IHttpBitmapCallback{
        public void onResponse();
    }

    public void httpInfoGet(String url, IHttpCallback callback);
    public void httpInfoGet(String url, IHttpCallback callback, int index);
    public void httpInfoPost(String url, HashMap<String, String> data, IHttpCallback callback);
    public void httpInfoPost(String url, HashMap<String, String> data, IHttpCallback callback, int index);
    public void httpImageDownload(String url, String filePath, IHttpBitmapCallback callback);
//    public void httpBitmapUpload(String url,)
}
